<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>智慧校园主页</title>
    <link rel="stylesheet" href="/css/layui.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">青鳥</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>

            <li class="layui-nav-item layui-hide-xs"><a href="">首页</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">走进青鳥</a></li>
            <li class="layui-nav-item layui-hide-xs"><a href="">学校资讯</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">学生风采</a>
                <dl class="layui-nav-child">
                    <dd><a href="">艺术节</a></dd>
                    <dd><a href="">运动会</a></dd>
                    <dd><a href="">节日晚会</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    个人中心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:toJumpByGet('/teachers/teacherDetail.html')">查看个人信息</a></dd>
                    <dd><a href="/LoginOff.html">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <!--<li class="layui-nav-item layui-nav-itemed">-->
                <li class="layui-nav-item">
                    <a href="javascript:;">园丁之声</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherCourse.html')">课表</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherStuInfo.html')">学生信息</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherStuScore.html')">学生成绩</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherSchScore.html')">全校成绩</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherStuPhy.html')">学生体质健康</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherStuDormitory.html')">宿舍管理</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherStuCommonication.html')">学生交流</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherStuComment.html')">学生评价</a></dd>
                        <dd><a href="javascript:toJumpByGet('/teachers/TeacherClassesActivity.html')">班会活动</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">试卷管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:toJumpByGet('/test/TestArray.html')">考试安排</a></dd>
                        <dd><a href="javascript:toJumpByGet('/test/TestInfo.html')">试卷信息</a></dd>
                        <dd><a href="javascript:toJumpByGet('/test/TestDetail.html')">试题管理</a></dd>
                        <dd><a href="javascript:toJumpByGet('/test/TestStuAnswer.html')">学生作答详情</a></dd>
                        <dd><a href="javascript:toJumpByGet('/test/TestImportant.html')">重点学生教学计划</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">校方</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:toJumpByGet('/admin/TeacherAttendance.html')">考勤调休</a></dd>
                        <dd><a href="javascript:toJumpByGet('/admin/TeacherWelfare.html')">教师福利</a></dd>
                        <dd><a href="javascript:toJumpByGet('/admin/EnrollmentRate.html')">升学率</a></dd>
                        <dd><a href="javascript:toJumpByGet('/admin/SchoolScoreStatistical.html')">全校学生成绩统计</a></dd>
                        <dd><a href="javascript:toJumpByGet('/admin/XXX.html')">教师招聘</a></dd>
                        <dd><a href="javascript:toJumpByGet('/admin/XXX.html')">后勤物资</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;" id="mainContent"></div>
    </div>

    <form class="layui-form layui-form-pane" id="adminLogin"  lay-filter="adminLoginFilter" style="display: none">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="text" name="roleName" autocomplete="off" class="layui-input">
                <input type="text" name="adminName" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>

</div>
<script src="/layui.js"></script>
<script src="/js/jquery-1.8.3.js"></script>
<script src="/js/toJumpByPost.js"></script>

<script>
    //JS
    layui.use(['element', 'layer','form', 'util'], function(){
        let element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,form=layui.form
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            ,menuRight: function(){
                layer.open({
                    type: 1
                    ,title:"欢迎您"
                    ,content: $("#adminLogin")
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                    ,success:function () {
                        $.post("/teacher/queryTeacher",function (res){
                            form.val("adminLoginFilter",{
                                "roleName":res.data.items[0].role.name
                                ,"adminName":res.data.items[0].teachersName
                            })
                        })

                    }
                });
            }
        });
    });

</script>
</body>
</html>